import request from '@/utils/request'

// 查询广告图配置列表
export function listBanner_config(query) {
  return request({
    url: '/business/banner_config/list',
    method: 'get',
    params: query
  })
}

// 查询广告图配置详细
export function getBanner_config(bannerId) {
  return request({
    url: '/business/banner_config/' + bannerId,
    method: 'get'
  })
}

// 新增广告图配置
export function addBanner_config(data) {
  return request({
    url: '/business/banner_config',
    method: 'post',
    data: data
  })
}

// 修改广告图配置
export function updateBanner_config(data) {
  return request({
    url: '/business/banner_config',
    method: 'put',
    data: data
  })
}

// 删除广告图配置
export function delBanner_config(bannerId) {
  return request({
    url: '/business/banner_config/' + bannerId,
    method: 'delete'
  })
}

// 导出广告图配置
export function exportBanner_config(query) {
  return request({
    url: '/business/banner_config/export',
    method: 'get',
    params: query
  })
}